package com.boarsoft.boar.batch.bean;

import java.io.Serializable;

/**
 * @author tao.wang57
 * @Description: 线程池监息
 * @date 2024-03-11
 */
public class ThreadPoolInfo implements Serializable {
	private static final long serialVersionUID = -1805250509930252715L;

	/**
	 * 线程池id，即bean id
	 */
	private String id;

	/**
	 * Returns the approximate number of threads that are actively executing
	 * tasks.
	 */
	private int activeCount;

	/**
	 * Returns the approximate total number of tasks that have completed
	 * execution.
	 */
	private long completedTaskCount;

	/**
	 * Returns the core number of threads.
	 */
	private int corePoolSize;

	/**
	 * Returns the thread keep-alive time, which is the amount of time that
	 * threads in excess of the core pool size may remain idle before being
	 * terminated.
	 *
	 * TimeUnit:MILLISECONDS
	 */
	private long keepAliveTime;

	/**
	 * Returns the largest number of threads that have ever simultaneously been
	 * in the pool.
	 */
	private int largestPoolSize;

	/**
	 * Returns the maximum allowed number of threads.
	 */
	private int maximumPoolSize;

	/**
	 * Returns the current number of threads in the pool.
	 */
	private int poolSize;

	/**
	 * Returns the approximate total number of tasks that have ever been
	 * scheduled for execution.
	 */
	private long taskCount;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public int getActiveCount() {
		return activeCount;
	}

	public void setActiveCount(int activeCount) {
		this.activeCount = activeCount;
	}

	public long getCompletedTaskCount() {
		return completedTaskCount;
	}

	public void setCompletedTaskCount(long completedTaskCount) {
		this.completedTaskCount = completedTaskCount;
	}

	public int getCorePoolSize() {
		return corePoolSize;
	}

	public void setCorePoolSize(int corePoolSize) {
		this.corePoolSize = corePoolSize;
	}

	public long getKeepAliveTime() {
		return keepAliveTime;
	}

	public void setKeepAliveTime(long keepAliveTime) {
		this.keepAliveTime = keepAliveTime;
	}

	public int getLargestPoolSize() {
		return largestPoolSize;
	}

	public void setLargestPoolSize(int largestPoolSize) {
		this.largestPoolSize = largestPoolSize;
	}

	public int getMaximumPoolSize() {
		return maximumPoolSize;
	}

	public void setMaximumPoolSize(int maximumPoolSize) {
		this.maximumPoolSize = maximumPoolSize;
	}

	public int getPoolSize() {
		return poolSize;
	}

	public void setPoolSize(int poolSize) {
		this.poolSize = poolSize;
	}

	public long getTaskCount() {
		return taskCount;
	}

	public void setTaskCount(long taskCount) {
		this.taskCount = taskCount;
	}
}
